#{extends 'main.html' /} #{set title:'Community Connect | My Organizations' /}
#{set 'moreStyles'}
<link rel="stylesheet" href="@{'/public/stylesheets/forms.css'}">

<link rel="stylesheet" href="@{'/public/stylesheets/list.css'}">
<link rel="stylesheet" href="@{'/public/stylesheets/tables.css'}">
#{/set}



<div id=main>



<h1 align="left"> All Organizations  </h1>


<table id="rounded-corner" summary="All Organizations" align="center" class="sortable">

    <thead>
    	<tr>
        	
        	
        	
           	<th scope="col" class="rounded-show">Show</th>
        	<th scope="col" class="rounded-name">Organization Name</th>
            <th scope="col" class="rounded-type">Type</th>
            <th scope="col" class="rounded-category">Category</th>
            <th scope="col" class="rounded-leader">Leader</th>
            
         
        </tr>
    </thead>
     #{list items:orgList, as:'Organization'}
    <tbody>
     
    	<tr>
        	
        	
            <td><a href="@{Organizations.showOrganization(Organization.id)}">Show </a></td>
        	<td>${Organization.name}</td>
            <td>${Organization.type}</td>
            <td>${Organization.category}</td>
            <td>${Organization.lead.name}</td>
           
        </tr>
       
    </tbody>
     #{/list}
     #{else} You are not a member or subscribed in any organization#{/else}
    
</table>

</div>


